import request from '@/utils/request'

export function loginByJson(data){
	return request({
		url:'/u/loginByJson',
        method:'POST',
        data
	})
}

export function sendRegisterOrLoginCaptcha(params){
	return request({
		url:'/sms/sendRegisterOrLoginCaptcha',
        params
	})
}

export function loginByMobile(data){
	return request({
		url:'/u/loginByMobile',
		method:'POST',
        data
	})
}

export function createToken(data){
	return request({
		url:'/token/createToken'
	})
}

export function getInfo(params){
	return request({
		url:'/member/getInfo',
		params
	})
}

export function logout(){
	return request({
		url:'/u/logout',
	})
}
